<template>
  <div class="hmTip">
    <div class="left">
      <div v-if="$slots.left" class="tip">
        <i class="el-icon-info" />
        <slot name="left">
          <span>文本内容</span>
        </slot>
      </div>
    </div>
    <div class="right">
      <slot name="right" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'HmTip'
}
</script>

<style lang="scss" scoped>
.hmTip {
  display: flex;
  align-items: center;
  padding: 20px;
  .left {
    display: flex;
    flex: 1;
    .tip {
      border: 1px solid #5a8bff;
      background-color: #e2edfc;
      .el-icon-info {
        color: #5a8bff;
      }
    }
  }
}
</style>
